<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Constructs a new Randomizer</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="class.random-randomizer.html">« Random\Randomizer</a></li>
      <li style="float: right;"><a href="random-randomizer.getbytes.html">Random\Randomizer::getBytes »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="class.random-randomizer.html">Random\Randomizer</a></li>
    <li>Constructs a new Randomizer</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="random-randomizer.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Random\Randomizer::__construct</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.2.0)</p><p class="refpurpose"><span class="refname">Random\Randomizer::__construct</span> &mdash; <span class="dc-title">Constructs a new Randomizer</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-random-randomizer.construct-description">
  <h3 class="title">说明</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Random\Randomizer::__construct</strong></span>(<span class="methodparam"><span class="type">?</span><span class="type"><span class="type"><a href="class.random-engine.html" class="type Random\Engine">Random\Engine</a></span><span class="type"></span></span> <code class="parameter">$engine</code><span class="initializer"> = <strong><code>null</code></strong></span></span>)</div>

  <p class="para rdfs-comment">

  </p>

  <div class="warning"><strong class="warning">警告</strong><p class="simpara">本函数还未编写文档，仅有参数列表。</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-random-randomizer.construct-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt>
<code class="parameter">engine</code></dt>

    <dd>

     <p class="para">
      The <span class="classname"><a href="class.random-engine.html" class="classname">Random\Engine</a></span> to use to generate randomness.
     </p>

     <p class="para">
      If <code class="parameter">engine</code> is omitted or <strong><code>null</code></strong>, a new <span class="classname"><a href="class.random-engine-secure.html" class="classname">Random\Engine\Secure</a></span> object will be used.
     </p>
    </dd>

   
  </dl>

 </div>


 


 <div class="refsect1 examples" id="refsect1-random-randomizer.construct-examples">
  <h3 class="title">范例</h3>
  <div class="example" id="example-3479">
   <p><strong>示例 #1 <span class="function"><strong>Random\Randomizer::__construct()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">/*&nbsp;...&nbsp;*/<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
   </div>

   <div class="example-contents"><p>以上例程的输出类似于：</p></div>
   <div class="example-contents screen">
<div class="cdata"><pre>
...
</pre></div>
   </div>
  </div>
 </div>



</div></div></div></body></html>